home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1980-01-03 | 1.3 KB | 57 lines |
- G4C
-
- WinBig -1 -1 350 100 "Radio.gc"
- WinType 11110001
- usetopaz
-
- BOX 0 0 0 0 OUT RIDGE
-
- xonLoad
- ; Confirm the initial setting in the text gadget
- update Radio.gc 1 London
- GuiOpen Radio.gc
-
- xonClose
- GuiQuit Radio.gc
-
- Text 140 2 100 12 'Radio' 6 NOBOX ; Headings
-
- ; ---- Arguments required for a Radio command :
- ; L T W H Variable Spacing
- ; | | | | | |
- xRadio 100 20 20 9 radvar 6
- RSTR London 0 ; The fields to be displayed
- RSTR Athens 1 ; with the radio buttons,
- RSTR Paris 2 ; and their values starting
- RSTR Berlin 3 ; form zero.
- RSTR Rome 4
-
- ; 'Spacing' is (approx.) the distance _between_ buttons.
-
- ; ----- A text gadget is used here to display the choice,
- ; just for visible confirmation. The following
- ; 'docase' lines assign the name to fit the
- ; current value of $radvar, and update the text
- ; gadget accordingly.
- docase $radvar
- case = 0
- update Radio.gc 1 London
- break
- case = 1
- update Radio.gc 1 Athens
- break
- case = 2
- update Radio.gc 1 Paris
- break
- case = 3
- update Radio.gc 1 Berlin
- break
- case = 4
- update Radio.gc 1 Rome
- endcase
-
- ; ---- A text gadget to confirm the selection.
- Text 170 30 100 12 'Current choice' 14 NOBOX
- Text 190 42 60 12 '' 14 BOX
- gadid 1
-